import java.util.HashMap;
import java.util.Map;

/**
 * @author fun.pengzh
 * @class PACKAGE_NAME.UserDao
 * @desc
 * @since 2021-09-30
 */
public class UserDao {

    private static Map<String, String> users = new HashMap<>();

    public void initDataMethod() {
        System.out.println("UserDao 执行：init-method");
        users.put("10000", "张三");
        users.put("10001", "李四");
    }

    public String query(String uId) {
        return users.get(uId);
    }

    public void destroyDataMethod(){
        System.out.println("UserDao 执行：destroy-method");
        users.clear();
    }
}
